﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class FightUIPanel : MonoBehaviour
{
    public Button btnBuff;

    public Button btnSkill;
    // Start is called before the first frame update
    void Start()
    {
        btnBuff.onClick.AddListener(OnBuffBtnClick);
        btnSkill.onClick.AddListener(OnSkillBtnClick);
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    void OnSkillBtnClick()
    {
        EventMgr.Instance.Emit((int)EventTypes.UI, UIEvents.Skill, 1000001);
    }

    void OnBuffBtnClick()
    {
        EventMgr.Instance.Emit((int)EventTypes.UI, UIEvents.Buff, 100001);
    }
}
